package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.entity.Result;
import com.itheima.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserDao {
    public long selectCountByUserId(Integer id) ;

    public void add(User user);

    public User findByUsername(String username);

 public List<User> findByCondition(String queryString);

  public   void setUserAndRole(Map<String, Integer> map);

    public User findById(Integer id);

   public void update(User user);

   public void deleteAssioncation(Integer userId);

   public void deleteById(Integer id);
}
